import fs from 'fs';

function writeText(path: string, text: string) {
    try {
        fs.writeFileSync(path, text);
        return true;
    } catch (e) {
        console.log('工具库 writeText 写入 text 文件失败', e);
        return false;
    }
}

export default writeText;